package cn.lena.weblog.dao;

import cn.lena.weblog.domain.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Mapper
@Repository
public interface UserDao {

	User findUserMore(Integer userId);

	User login(@Param("userId") Integer userId,@Param("password") String password);

	User findByUserId(Integer userId);

	int update(User user);

	int delUser (User user);

	int changePassage(@Param("userId") Integer userId,@Param("password") String password);

	int addUser(User user);

	int findPassword(@Param("userId") Integer userId,@Param("password") String password);

}
